package structurePattern.facadePattern;

import java.util.HashMap;

public class DataAPI {

	private HashMap<String, Integer> nameIdMap = new HashMap<>();

	private static DataAPI dataAPI = new DataAPI();

	public static DataAPI getDataAPI() {
		return dataAPI;
	}

	private DataAPI() {
		System.out.println("DataAPI Initialize!");
	}

	public Integer getID(String name) {
		return nameIdMap.get(name);
	}

	public void updateValue(String name, int key) {
		nameIdMap.put(name, key);
	}
}
